﻿
<%--
  *  File:    HospitalOrPharmacyPlanReportEdit.jsp
  *  @Author: jackwang
  *  Date:    2013/8/22
  *
  *  Copyright (C) 2000 - 2005 Oval Technologies, Inc.
  *  All rights reserved.
  *
  *  This software is the confidential and proprietary information of Oval
  *  Technologies, Inc. ("Confidential Information").  You shall not
  *  disclose such Confidential Information and shall use it only in
  *  accordance with the terms of the license agreement you entered into
  *  with Oval.
 --%>

<%@ page contentType="text/html;charset=UTF-8"%>

<%
   //init param
   Category cat = Category.getInstance("jsp.HospitalOrPharmacyPlanReportEdit");
   String strTableName = "v_orgreportplan";
   String strModuleName = "COM";
   String privilegeCode = "A01401";
   String contextPath = request.getContextPath();
 %>
<%@ include file="/inc/CommonHeader.inc"%>
<%@ include file="/inc/OvalLocationDefault.inc"%>
<%@ include file="/inc/Print.inc"%>
<%@ include file="/rpt/ReportURL.inc"%>
<%
   //get curuser info
   HashMap CurUserInfo = (HashMap)session.getAttribute("userinfo");
   String strCurOrgName = (String)CurUserInfo.get("orgname");
   Integer nCurOrgId = (Integer)CurUserInfo.get("orgid");
   Integer nCurUserId = (Integer)CurUserInfo.get("userid");
   if(nCurOrgId == null)
   {
     nCurOrgId = new Integer(-1234567);
   }
 %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>HospitalOrPharmacyPlanReportEdit</title>
<iframe name="reloadHandler" style="display:none"></iframe>
<PageFlow:CheckPageFlow pageName="p_orgreportplan" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<%@ include file="/inc/CatchError.inc"%>
<script language="JavaScript" src="<%=contextPath %>/js/ScriptLib.js"></script>
<script language="JavaScript"
	src="<%=contextPath %>/js/SummaryDivision.js"></script>
<link rel="stylesheet"
	href="<%=contextPath %>/css/<%= strLanguageCode %>/main.css"
	type="text/css">
<script language="JavaScript"
	src="<%=contextPath %>/css/<%= strLanguageCode %>/script.js"></script>
<script language="JavaScript" src="<%=contextPath %>/js/Calendar.js"></script>
<script language="JavaScript" src="<%=contextPath %>/js/FuncLib.js"></script>
<script language="JavaScript"
	src="<%=contextPath %>/js/opal2/mootools.js"></script>
<%@ include file="/inc/SummaryDivision.inc"%>
<%
   Vector totalsummary = (Vector)pageContext.getAttribute("totalsummary");
   if(totalsummary == null)
   {
     totalsummary = new Vector();
   }
	String orgoptionvalue = (String)pageContext.getAttribute("orgoption");
	if(orgoptionvalue == null)orgoptionvalue = "1";
	String isfirst = (String)pageContext.getAttribute("isfirst");
	String isview = (String)pageContext.getAttribute("isview");
	//out.print("isfirst="+isfirst);
	if(isfirst == null)isfirst = "";
	Integer planreporttype=new Integer(-1);
	if(pageContext.getAttribute("planreporttype") != null){
		planreporttype = (Integer)pageContext.getAttribute("planreporttype");
	}
 %>
<script>
 var popwindow;    
 function page_summary(actionvalue,orderbyname)
 {
   var editform = summaryPrepare(cform,actionvalue,orderbyname);
   editform.action = "HospitalOrPharmacyPlanReportEdit.jsp?<%= OvalTools.randomURL() %>&flag=y";
   editform.target = "_self";
   isRunning = true;
   editform.submit();
 }


 function checkAll()
 {
      if(cform.selorgids)
      {
         if(cform.selorgids.length)
         {
             for(var i=0;i<cform.selorgids.length;i++)
             {

                  cform.selorgids[i].checked=cform.selectall.checked;
             }
         }else
         {
             cform.selorgids.checked=cform.selectall.checked;
         }


      }
 }
 function page_update()
 {
  
  var flag = confirm("<%= message.getMessageDesc("ARE_YOU_SURE_TO_UPDATE") %>");
    if(!flag)
  return;
  document.cform.action = "HospitalOrPharmacyPlanReportEdit.jsp?<%= OvalTools.randomURL() %>&flag=u";
   document.cform.target = "_self";
   isRunning = true;
   document.cform.submit();
   alert("已修改完成！");
 }
 
 function page_go()
 {
   document.cform.action = "HospitalOrPharmacyPlanReportEdit.jsp?<%= OvalTools.randomURL() %>&flag=s";
   document.cform.target = "_self";
   document.cform.pageaction.value = "OrderBy";
   isRunning = true;
   document.cform.submit();
 }
 
 function page_pretreatment()
 {
   document.cform.action = "HospitalOrPharmacyPlanReportEdit.jsp?<%= OvalTools.randomURL() %>&flag=d";
   document.cform.target = "_self";
   document.cform.pageaction.value = "OrderBy";
   isRunning = true;
   document.cform.submit();
 }

 var type;

 function page_selectProvince(obj)
 {
   type=obj;
   if(popwindow!=null)
    popwindow.close();
   popwindow = window.open('<%=contextPath %>/masterdata/ogm/RegionSelect.jsp?<%= OvalTools.randomURL() %>&languagecode=<%= strLanguageCode %>&countrycode=CN','newwindow', 'height=250, width=500,top=100,left=100,toolbar=n0, menubar=no, scrollbars=no, resizable=no, location=no, status=no');
 }
 function page_selectCustomer()
 {
    window.open("<%=contextPath%>/masterdata/ogm/OrgSelect.jsp?<%= OvalTools.randomURL() %>", "newwindow", "height=450, width=600,top=100,left=100,toolbar=n0, menubar=no, scrollbars=yes, resizable=no, location=no, status=no")
 }
 function page_setOrg(orgid,orgname,orgcode)
 {
    document.cform.orgid.value=orgid;
    document.cform.orgname.value=orgname;
    document.cform.orgcode.value=orgcode;
	hiddenFrm();
 }

 function page_reload()
{
   document.cform.orgid.value="";
   document.cform.orgname.value="";
   if(isEmpty(document.cform.orgcode.value))
   {
        document.cform.orgcode.value = "";
        return;
   }
    var  datahandler = new  DataHandler() ;
    datahandler.add_params("selectoption" , "xjpcustomer") ;
    datahandler.add_params("searchname" , "orgcode") ;
    datahandler.add_params("searchvalue" , document.cform.orgcode.value) ;
    datahandler.getResultFromHashMap("orgsummary" ,"orgcode" ,"document.cform.orgcode");
    datahandler.getResultFromHashMap("orgsummary" ,"orgid" ,"document.cform.orgid");
    datahandler.getResultFromHashMap("orgsummary" ,"orgname" ,"document.cform.orgname");
    datahandler.add_job("getrelatedorg") ;
	datahandler.add_function("page_checkOrg()");
    datahandler.runDataHandler ();
}

function page_checkOrg(){
	if(cform.orgid.value == ""){
		cform.orgcode.value = "";
	}
}
 
 function setNewRegionCode(newareacode,areaname,regioncode){
        var length = newareacode.length;
	    var regioncodearray= regioncode;
	    var areanamearray=areaname;
		var areaidString = "";
		var areanameString = "";
		var regioncodeString = "";
		var StrsRegioncode = "";
	   	var StrsRegionname = "";
	  for(var i = 0;i < length;i++){
			if(i == length - 1){
				areaidString = areaidString + newareacode[i].value;
				areanameString = areanameString + "'" + areanamearray[i].value + "'";
				regioncodeString = regioncodeString + "'" + regioncodearray[i].value + "'";
				
				StrsRegionname = StrsRegionname + areanamearray[i].value;
			    StrsRegioncode = StrsRegioncode + regioncodearray[i].value;
			}else{
				areaidString = areaidString + newareacode[i].value + ",";				
				areanameString = areanameString + "'" + areanamearray[i].value + "'" + ",";
				regioncodeString = regioncodeString + "'" +regioncodearray[i].value + "'" + ",";
				
				StrsRegionname = StrsRegionname + areanamearray[i].value + ",";
				StrsRegioncode = StrsRegioncode +regioncodearray[i].value + ",";
			}			
		} 
		cform.sregionname.value = "";
		cform.sregionname.value = areanameString;
		cform.scityname.value = "";
		cform.proid.value = "";
		cform.proid.value = areaidString;
		cform.sregioncode.value = "";
		cform.sregioncode.value = regioncodeString;
		
		cform.newsregionname.value = "";
	    cform.newsregionname.value = StrsRegionname;
		cform.newsregioncode.value = "";
		cform.newsregioncode.value = StrsRegioncode;
 }
		
 function setNewCityCode(newareacode,areaname,citycodeinfo){
	  var length = newareacode.length;
	  var citycodearray=citycodeinfo;
	  var areanamearray=areaname;
		var areaidString = "";
		var areanameString = "";
		var citycodeString = "";
		var StrsCitycode = "";
	   	var StrsCityname = "";
		for(var i = 0;i < length;i++){
			if(i == length - 1){
				areaidString = areaidString + newareacode[i].value;
				areanameString = areanameString + "'" + areanamearray[i].value + "'";
				citycodeString = citycodeString + "'" + citycodearray[i].value + "'";
				
				StrsCityname = StrsCityname + areanamearray[i].value;
				StrsCitycode = StrsCitycode + citycodearray[i].value;
			}else{
				areaidString = areaidString + newareacode[i].value + ",";
				areanameString = areanameString + "'" + areanamearray[i].value + "'" + ",";
				citycodeString = citycodeString + "'" + citycodearray[i].value + "'" + ",";
				
				StrsCityname = StrsCityname + areanamearray[i].value + ",";
			    StrsCitycode = StrsCitycode + citycodearray[i].value + ","; 
			}			
		}
		cform.scityname.value = "";
		cform.scityname.value = areanameString;
		cform.cityid.value = "";
		cform.cityid.value = areaidString;
		cform.scitycode.value = "";
		cform.scitycode.value = citycodeString;
		
		cform.newscityname.value = "";
		cform.newscityname.value = StrsCityname;
		cform.newscitycode.value = "";
		cform.newscitycode.value = StrsCitycode;
 }

var popwindow;
var trindex=-1;
/*
function closeItemSelect(evt)
{
	var _obj = document.getElementById("summaryfrm");
	if(isHidden == "block"){
		isHidden = "none";
	}else{
		_obj.style.display = "none";
	}
	evt = evt || window.event;
        var _target = evt.target || evt.srcElement;
        if (!_target.getAttribute("Author") && _target != inputObj && _target != targetObj) {
            getObjById("Calendar").style.display = "none";
            getObjById("CalendarFrm").style.display = "none";
        }
}
*/
function hiddenFrm(){
	document.getElementById("summaryfrm").style.display = "none";
}

//document.onclick=closeItemSelect; 

function page_download(){
	var url;
	var year = cform.year.value;
	var month = cform.month.value;
	var pdgroupid = cform.pdgroupid.value;
	var areaids = cform.areaids.value;
	var planreporttype=document.cform.planreporttype.value;
	var employeeid=document.cform.userid.value;
	if(isEmpty(planreporttype)) {
	   return;
	}
	if(planreporttype==1){
      url= "<%=reportURL%>"+"/servlet/ExcecuteReport/orgreportplan1.sox?__format=xlsx&__folder=/ovalreport&<%= OvalTools.randomURL() %>"; 
    }else{
       if(planreporttype==2){
        url= "<%=reportURL%>"+"/servlet/ExcecuteReport/orgreportplan2.sox?__format=xlsx&__folder=/ovalreport&<%= OvalTools.randomURL()%>"; 
       }
    }
	if(!isEmpty(pdgroupid)) url += "&pdgroupid=" + escape(encodeURI(pdgroupid));
	if(!isEmpty(areaids)) url += "&areaids=" + escape(encodeURI(areaids));
	if(!isEmpty(employeeid)) url += "&employeeid=" + escape(encodeURI(employeeid));
	if(!isEmpty(year)) url += "&year=" + escape(encodeURI(year));
	if(!isEmpty(month)) url += "&month=" + escape(encodeURI(month));
	var style = "height=600, width=900, top=50, left=120, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no";
	window.open (url, 'newwindow', style);
}
function popBusinessarea_moulty(){
	if(popwindow!=null) popwindow.close();
	
    url = '<%=contextPath %>/phap/phap.datp/masterdata/cm/dataclean/ZylStdareaSelect.jsp?<%= OvalTools.randomURL() %>';
    attribute = 'height=500, width=900,top=100,left=100,toolbar=no, menubar=no, scrollbars=yes, resizable=no, location=no, status=no';
	popwindow = window.open(url,'newwindow', attribute);
}

function setAreas(areaids,areanames,areacodes){

	document.cform.areaids.value = areaids;
	document.cform.businessareaname.value = areanames;
	//document.cform.businessareacode.value = areacodes;
} 
function page_upload(){
    //var year=document.cform.year.value;
    var planreporttype=document.cform.planreporttype.value;
	this.location.href ="<%= contextPath%>/zylprocessgoals/ZylUploadPlanReort.jsp?&planreporttype="+planreporttype+"&<%= OvalTools.randomURL() %>" ;
}
function popContactProd(){
    var planreporttype=document.cform['planreporttype'].value;
    if(planreporttype==1)  document.cform['datacategory'].value=7;
    if(planreporttype==2)  document.cform['datacategory'].value=8;
    if(popwindow!=null) popwindow.close();
 	popwindow = window.open("<%=contextPath%>/masterdata/ogm/ProductbrandPopWindow.jsp?<%= OvalTools.randomURL() %>&zyldatacategory="+document.cform['datacategory'].value, "newwindow", "height=400, width=600,top=100,left=100,toolbar=no, menubar=no, scrollbars=yes, resizable=no, location=no, status=yes")
}
 function set_orgNameByPopWindow(id,code,name){
    document.cform.pdgroupid.value =id;
    document.cform.pdgroupname.value= name;
}
function page_deptinfo()
{
	var myform = eval("document.cform");
	var deptid=document.cform.deptids.value;
	var data = new  DataHandler() ;
	data.add_params("deptid" ,deptid,"integer") ;
	data.getResultFromHashMap("deptinfo" ,"deptcode" ,"document.cform.deptcode");
	data.getResult("goalstype" ,"document.cform.goalstype");
	data.add_job("j_zylgetdeptgolalstype") ;
	data.runDataHandler ();
	//alert(document.cform.goalstype.value);
}
 </script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<iframe name="summaryfrm" scrolling="yes" frameborder="0"
	style="position:absolute; top:0px; left:0px; display:none;border:#909eff 1px solid;"></iframe>
<form name="cform" method="post" action="<%=contextPath %>/Dispatcher">
     <input type="hidden" name="pagename" value="p_orgreportplan">
     <input type="hidden" name="actionname" />
     <input type="hidden" name="name" value="">
     <input type="hidden" name="type" value=""> 
     <input type="hidden" name="goalstype"> 
     <input type="hidden" name="deptcode"> 
     <input type="hidden" name="datacategory">
     <input type="hidden" name="clstflagvalue" value="">
     <custom:hidden property="messagecode" />
     <custom:hidden property="isview" />
     <custom:hidden property="isfirst" value="N" />
     <custom:hidden property="languagecode" scope="session" />
     <custom:hidden name="userinfo" property="userid" scope="session" />
     <custom:hidden property="orgids" />
      <%--  page location   --%> 
      <%@ include file="/inc/PageLocation.inc"%>
<table width="100%" cellspacing="0" cellpadding="0" border="0"
	onkeydown="if(event.keyCode==13) page_summary('search');">
	<tr>
		<td>
		<table width="50%" cellspacing="0" cellpadding="0" border="0">
			<tr>
				<td>
				<div align="right"><%=label.getLabelName("L_PlanType")+ label.getLabelName("L_Colon")%></div>
				</td>
				<td><custom:selectdic property="planreporttype"
					dictType="PlanReportType" valueCriteria="1,2" /></td>
				<td>
				<div align="right"><font color=black><%= label.getLabelName("L_Year1") + label.getLabelName("L_Colon") %></font>
				</div>
				</td>
				<td><custom:selectdic property="year" dictType="Years" label="L_Year1" /></td>
				<td>
				<div align="right"><font color=black><%= label.getLabelName("L_Month1") + label.getLabelName("L_Colon") %></font>
				</div>
				</td>
				<td><custom:selectdic property="month" dictType="Months" label="L_Month1" /></td>
				<% if(!("N".equals(isfirst))){ %>
				<script type="text/javascript">
		                    var d = new Date();
                            var year=d.getFullYear();
                            var month=d.getMonth()+1;
                            document.cform.year.value=year;
                            document.cform.month.value=month;
		        </script>
				<%}%>
				
				<td>
				  <div style="display:none;"><%=label.getLabelName("L_Provicetdr") +  label.getLabelName("L_Colon") %></div>
				</td>
				<td style="width:160px;" class="td_left"><div style="display:none;"><custom:hidden
					property="areaids" /> <custom:text property="businessareaname"
					label="L_Provicetdr" readonly="true" /> <a
					onclick="popBusinessarea_moulty()"><custom:button type="3"
					value="*" /></a></div>
			    </td>
				<td class="title_center"><div style="display:none;"><%=label.getLabelName("L_Variety")+ label.getLabelName("L_Colon")%></div></td>
				<td><div style="display:none;">
				   <custom:text property="pdgroupname" size="15"></custom:text>
				   <a onclick="popContactProd();"><custom:button type="3" label="L_Asterisk" imgsrc="flash.gif" border="0" /></a> 
				   <custom:hidden property="pdgroupid" /></div>
			    </td>
				<td>
				<a href="javascript:page_summary('search')">
				<img src="<%= contextPath %>/images/<%= strLanguageCode %>/go_fy.gif" border="0" style="border: 1 solid #000000"></a>
			    </td>

				<%
                                String clstflag = (String)pageContext.getAttribute("clstflag");
                                if(clstflag==null){
                                    clstflag="N";
                                }
                         %>
			</tr>
			<%-----------------------第二行---------------------%>
		</table>
		</td>
	</tr>
	<tr>
		<td colspan="2">
		<div style="overflow:auto;"  id="scrollGDiv">
		<table width="1800" border="1" cellpadding="0"
			bordercolorlight="#999999" bordercolordark="#FFFFFF" cellspacing="0"
			align="center">
			<%if(planreporttype.intValue()==1){ %>
			<tr class="deepblue-left">
				<!--  <td class="title_center" rowspan="2" width="1%">&nbsp;<input
					type="checkbox" name="allcheck" class="normalradio"
					onclick="allcheckselect();"></td>-->
				<td class="title_center" width="2%" rowspan="2"><%= label.getLabelName("L_Provicetdr") %></td>
				<td class="title_center" width="2%" rowspan="2"><%= label.getLabelName("L_Department") %></td>
				<td class="title_center" width="4%" rowspan="2"><%= label.getLabelName("L_RegionOffice") %></td>
				<td class="title_center" width="4%" rowspan="2"><%= label.getLabelName("L_ManagerCode") %></td>
				<td class="title_center" width="5%" rowspan="2"><%= label.getLabelName("L_ManagerName") %></td>
				<td class="title_center" width="5%" rowspan="2"><%= label.getLabelName("L_Employeecode ") %></td>
				<td class="title_center" width="5%" rowspan="2"><%= label.getLabelName("L_employeenameDelegate") %></td>
				<td class="title_center" width="5%" rowspan="2"><%= label.getLabelName("L_HospitalCode")%></td>
				<td class="title_center" width="5%" rowspan="2"><%= label.getLabelName("L_HospitalName") %></td>
				<td class="title_center" width="5%" rowspan="2"><%= label.getLabelName("L_SCMRole ") %></td>
				<td class="title_center" width="5%" rowspan="2"><%= label.getLabelName("L_CityName") %></td>
				<td class="title_center" width="5%" rowspan="2"><%= label.getLabelName("L_YLCounty")%></td>
				<td class="title_center" width="5%" rowspan="2"><%= label.getLabelName("L_Country")+label.getLabelName("L_Grade") %></td>
				<td class="title_center" width="5%" rowspan="2"><%= label.getLabelName("L_Grade ") %></td>
				<td class="title_center" width="5%" rowspan="2"><%= label.getLabelName("L_Yl_Level") %></td>
				<td class="title_center" width="5%" rowspan="2"><%= label.getLabelName("L_Variety")%></td>
				<td class="title_center" width="5%" rowspan="2"><%= label.getLabelName("L_YesOrNoOpen ") %></td>
				<td class="title_center" width="5%" colspan="2"><%= "开户时间" %></td>
			</tr>
			<tr class="deepblue-left">
				<td class="title_center"><%= label.getLabelName("L_YearN")  %></td>
				<td class="title_center"><%= label.getLabelName("L_Month1")  %></td>
		    </tr>
			<%} %>
			<%if(planreporttype.intValue()==2){ %>
			<tr class="deepblue-left">
				<!--  <td class="title_center" rowspan="2" width="1%">&nbsp;<input
					type="checkbox" name="allcheck" class="normalradio"
					onclick="allcheckselect();"></td>-->
				<td class="title_center" width="2%" rowspan="2"><%= label.getLabelName("L_Provicetdr") %></td>
				<td class="title_center" width="2%" rowspan="2"><%= label.getLabelName("L_Department") %></td>
				<td class="title_center" width="4%" rowspan="2"><%= label.getLabelName("L_RegionOffice") %></td>
				<td class="title_center" width="4%" rowspan="2"><%= label.getLabelName("L_ManagerCode") %></td>
				<td class="title_center" width="5%" rowspan="2"><%= label.getLabelName("L_ManagerName") %></td>
				<td class="title_center" width="5%" rowspan="2"><%= label.getLabelName("L_Employeecode ") %></td>
				<td class="title_center" width="5%" rowspan="2"><%= label.getLabelName("L_employeenameDelegate") %></td>
				<td class="title_center" width="5%" rowspan="2"><%= label.getLabelName("L_PharmacyCode")%></td>
				<td class="title_center" width="5%" rowspan="2"><%= label.getLabelName("L_PharmacyName") %></td>
				<td class="title_center" width="5%" rowspan="2"><%= label.getLabelName("L_SCMRole ") %></td>
				<td class="title_center" width="5%" rowspan="2"><%= label.getLabelName("L_CityName") %></td>
				<td class="title_center" width="5%" rowspan="2"><%= label.getLabelName("L_YLCounty")%></td>
				<td class="title_center" width="5%" rowspan="2"><%= label.getLabelName("L_PharmacyType") %></td>
				<td class="title_center" width="5%" rowspan="2"><%= label.getLabelName("L_ISCHAIN ")+label.getLabelName("L_Property ")  %></td>
				<td class="title_center" width="5%" rowspan="2"><%= label.getLabelName("L_DrugstoreLevel") %></td>
				<td class="title_center" width="5%" rowspan="2"><%= label.getLabelName("L_YesOrNoTarget") %></td>
				<td class="title_center" width="5%" rowspan="2"><%= label.getLabelName("L_Variety")%></td>
				<td class="title_center" width="5%" rowspan="2"><%= label.getLabelName("L_YesOrNoOpen ") %></td>
				<td class="title_center" width="5%" colspan="2"><%= "开户时间" %></td>
			</tr>
			<tr class="deepblue-left">
				<td class="title_center"><%= label.getLabelName("L_YearN")  %></td>
				<td class="title_center"><%= label.getLabelName("L_Month1")  %></td>
		    </tr>
			<%} %>
			<%
                        String strClassType="";
                        int i = 0;
                 %>
			<logic:iterate id="info" collection="<%= totalsummary %>">
				<%//show different colours in turns
                     if(i%2 == 1)
                         {
                             strClassType = "td-listrom";
                         }else{
                             strClassType = "none";
                         }
                     i++;
                 %>
				<tr id="tr<%=i%>" onMouseOver="this.className='tr-over'"
					onMouseOut="this.className='<%= strClassType %>'"
					class="<%= strClassType %>">
					<td>&nbsp;<custom:write name="info" property="area1name" /></td>
					<td>&nbsp;<custom:write name="info" property="deptname" /></td>
					<td>&nbsp;<custom:write name="info" property="area2name" /></td>
					<td>&nbsp;<custom:write name="info" property="parentemployeecode" /></td>
					<td>&nbsp;<custom:write name="info" property="parentemployeename" /></td>
					<td>&nbsp;<custom:write name="info" property="employeecode" /></td>
					<td>&nbsp;<custom:write name="info" property="employeename" /></td>
					<td>&nbsp;<custom:write name="info" property="orgcode" /></td>
					<td>&nbsp;<custom:write name="info" property="orgname" /></td>
					<td>&nbsp;<custom:write name="info" property="globalpccode"   /></td>
					<td>&nbsp;<custom:write name="info" property="cityname" /></td>
					<td>&nbsp;<custom:write name="info" property="countrycityname" /></td>
					<td>&nbsp;<custom:write name="info" property="organalysisattr1" /></td>
					<td>&nbsp;<custom:write name="info" property="organalysisattr2" /></td>
					<td>&nbsp;<custom:write name="info" property="organalysisattr3" /></td>
					<%if(planreporttype.intValue()==2){ %>
					<td>&nbsp;<custom:write name="info" property="organalysisattr4" /></td>
					<%} %>
					<td>&nbsp;<custom:write name="info" property="productgroupname" /></td>
					<td>&nbsp;<custom:write name="info" property="isopen" dictType="IsOpen" /></td>
					<td>&nbsp;<custom:write name="info" property="openyear" /></td>
					<td>&nbsp;<custom:write name="info" property="openmonth" /></td>
				</tr>
			</logic:iterate>
			<%@ include file="/inc/SummaryAction.inc"%>
		</table>
		</div>
		</td>
	</tr>
	<tr>
		<td colspan="2">
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td class="summary_top"></td>
			</tr>
			<tr>
			  <%if(isview ==null){ %>
				<td class="td_center">
				<custom:button label="L_Upload" styleClass="button1" style="width:80px;" onclick="page_upload()" />
				<custom:button value="上报模版下载" styleClass="button1" style="width:80px;" onclick="page_download()" />
			    </td>
		      <%} %>
			</tr>
		</table>
		</td>
	</tr>
	<tr>
		<td>&nbsp;</td>
	</tr>
</table>
</form>
<script type="text/javascript">
  document.getElementById("scrollGDiv").style.width=(screen.availWidth - 30);
  document.getElementById("scrollGDiv").style.height=(screen.availHeight - 400);
/*
window.onload = function() {
    var newMask = document.createElement("div");
    newMask.id = "mDiv";
    newMask.style.position = "absolute";
    newMask.style.zIndex = "5000";
    _scrollWidth = Math.max(document.body.scrollWidth, document.documentElement.scrollWidth);
    _scrollHeight = Math.max(document.body.scrollHeight, document.documentElement.scrollHeight);
    newMask.style.width = "100%";
    newMask.style.height = "110%";
    newMask.style.top = "0px";
    newMask.style.left = "0px";
    newMask.style.background = "#33393C";
    newMask.style.filter = "alpha(opacity=40)";
    newMask.style.opacity = "0.40";
    newMask.style.display = 'none';
    newMask.innerHTML = '<iframe style="position:absolute;top:0;left:0;width:100%;height:100%;filter:alpha(opacity=0);"></iframe>'
    document.body.appendChild(newMask);
    document.getElementById("submit").style.zIndex = "5002";
    var objDrag = document.getElementById("close");
    var drag = false;
    var dragX = 0;
    var dragY = 0;
    objDrag.attachEvent("onmousedown", startDrag);
    function startDrag() {
        if (event.button == 1 && event.srcElement.tagName.toUpperCase() == "DIV") {
            event.srcElement.setCapture();
            drag = true;
            dragX = event.clientX;
            dragY = event.clientY;
        }
    };
    objDrag.attachEvent("onmousemove", Drag);
    function Drag() {
        if (drag) {
            var oldwin = event.srcElement.parentNode;
            oldwin.style.left = oldwin.offsetLeft + event.clientX - dragX;
            oldwin.style.top = oldwin.offsetTop + event.clientY - dragY;
            oldwin.style.left = event.clientX - 100;
            oldwin.style.top = event.clientY - 10;
            dragX = event.clientX;
            dragY = event.clientY;
        }
    };
    objDrag.attachEvent("onmouseup", stopDrag);
    function stopDrag() {
        event.srcElement.releaseCapture();
        drag = false;
    };
	
}
document.summaryfrm.location.href = "<%=contextPath%>/masterdata/ogm/OrgSelectCompare.jsp?<%= OvalTools.randomURL() %>";
*/
</script>
</body>
</html>


